package com.mingqijia.gassafety.webserver.service;

import com.mingqijia.gassafety.db.entity.Contacts;
import com.mingqijia.gassafety.db.entity.DeviceState;
import com.mingqijia.gassafety.db.entity.ValveInfo;
import com.mingqijia.gassafety.webserver.response.WarningDataResponse;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;
import java.util.Map;

public interface CommonService {

    Map<Integer,List<Contacts>> getContacts(List<Integer> consumerIds, String spId);

    Map<Integer, ValveInfo> getValveInfo(List<Integer> valveInfoIds, String spId);

    Map<String, DeviceState> getDeviceState(List<String> deviceIds, String spId);

    List<Integer> loadField(String listCode, String spId);


    <T> List<T> loadFieldAndPackaging(Object response, Class<T> clazz, List<Integer> consumerIds,
                                       List<Integer> valveInfoIds, List<String> iMEIs, String spId, String listCode);
}
